package com.neu.question.domain;

import lombok.Data;

@Data
public class EndRespond {
    private Integer id;
    private String username;
    private String phoneNum;
    private String email;
    private String QuestionnaireId = null;
    private String status;

    public EndRespond create(RespondentInfo respondentInfo, String username, String phoneNum, String status) {
        EndRespond en = new EndRespond();
        en.setId(respondentInfo.getId());
        en.setStatus(status);
        en.setUsername(username);
        en.setPhoneNum(phoneNum);
        en.setEmail(respondentInfo.getEmail());
        en.setQuestionnaireId(respondentInfo.getQuestionnaireId());
        return en;
    }


}
